package com.tedu.webDemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ItemController {
	@RequestMapping("/find")
	public Item find() {
		Item item=new Item();
		item.setId(90);
		item.setName("mate10");
		return item;//springmvc框加会自动调用jackson
		//把item转成json字符串
	}

}
